package com.rd.student.jike.class4.xiayinyin.week04.day26;

import java.io.File;
import java.io.IOException;

public class Demo04 {
    public static void main(String[] args) {
        String projectPath = System.getProperty("user.dir");
        //创建文件夹或文件
        File t1 = new File(projectPath + "/" + "t1");
        System.out.println(t1.getAbsolutePath());
        File t2 = new File(t1.getAbsolutePath() + "/" + "t2");
        try {
            t2.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
